Ext.define('AmpleHarvest.objects.breadcrumbs.cGoToParent',
{
	extend			: 'Ext.button.Button',
	alias			: 'widget.ampleharvest-objects-breadcrumbs-cgotoparent',
	text			: 'Go To: ',
	
	listeners		:
	{
		brokerResponse	: function(obj_response)
		{
 			this.str_targetId = obj_response.data.id;
 			this.text = this.text+obj_response.data.label;
			this.ahCaller.fireEvent('buttonResponse', this);
		}
	},
	handler 		: function()
	{
		m_obj_AmpleHarvest_ViewPort.fireEvent(
				AmpleHarvest.eventHandler.cWindowEvents.C_STR_EVENT_ARTICLE_OPEN,
				this.str_targetId, ''
		);
	},

	initComponent	: function()
	{
		this.callParent();
		
		var util_db_breadcrumbs = Ext.create('AmpleHarvest.util.dataBroker');
		util_db_breadcrumbs.brokerData(this, this.m_str_id, 'ampleharvest-objects-breadcrumbs-cgotoparent');	
	}
}
);
